import request from '@/utils/request'

// 查询出库详情列表
export function listChukudetail(query) {
  return request({
    url: '/business/chukudetail/list',
    method: 'get',
    params: query
  })
}

// 查询出库详情详细
export function getChukudetail(id) {
  return request({
    url: '/business/chukudetail/' + id,
    method: 'get'
  })
}
export function addChuKuStockinfo(id) {
  return request({
    url: '/business/chukudetail/addChuKuStockinfo/' + id,
    method: 'get'
  })
}

// 新增出库详情
export function addChukudetail(data) {
  return request({
    url: '/business/chukudetail',
    method: 'post',
    data: data
  })
}

// 修改出库详情
export function updateChukudetail(data) {
  return request({
    url: '/business/chukudetail',
    method: 'put',
    data: data
  })
}

// 删除出库详情
export function delChukudetail(id) {
  return request({
    url: '/business/chukudetail/' + id,
    method: 'delete'
  })
}
